package com.sfdcj.se.meta.field;

import java.util.HashMap;

import com.sforce.soap._2006._04.metadata.CustomField;

abstract public class FieldType {

	public String label;

	public String fullname;

	public StringBuffer buf;
	
	public String objectFullname;

	public FieldType() {
		buf = new StringBuffer();
	}

	abstract public void appendXML();

	public String toXML() {
		buf.append("<fields>");
		buf.append("<fullName>" + fullname + "__c</fullName>");
		buf.append("<label>" + label + "</label>");
		appendXML();
		buf.append("</fields>");
		return buf.toString();
	}

	abstract public String getTypeName();

	abstract public Object clone();

	abstract public void setAttributes(HashMap<String, String> attributes);

	abstract public CustomField toCustomField();

}
